import plotly.express as px
import pandas as pd
df = pd.read_excel(r"D:\work_files\projcet\generation_hour\phour_easy_report\不同气象数据集的对比\solargis_excel\安徽-solargis.xlsx")
fig = px.scatter_map(df,
                        lat="lat",
                        lon="lon",
                        color='GHI', # 用来决定颜色深浅的值
                        hover_name='GHI', # 悬停显示的值
                        hover_data=['GHI'], # 悬停显示的数据，times, lon, lat会自动包含
                        title='1',
                        # animation_frame='区县地址',
                        color_continuous_scale=px.colors.carto.Temps
                        )
# 地图参数增强配置
fig.update_geos(
    resolution=110,
    scope="asia",
    showcountries=True,
    countrycolor="darkgrey",
    showsubunits=True,
    subunitcolor="grey",
    center={"lon": 104, "lat": 35},
    projection_scale=4,
    landcolor="lightyellow"  # 陆地底色增强对比
)
fig.show()